<template>
  <div class="dataItem">
    <div class="topData">
      <slot name="light"></slot>
      <slot name="title"></slot>
    </div>
    <div class="bottomData">
      <slot name="value"></slot>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang='less' scoped>
.dataItem {
  flex: 1;
  display: flex;
  flex-direction: column;
  .topData {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    .leftLight {
      width: 1.8rem;
      height: 1.8rem;
      border-radius: 50%;
      display: inline-block;
      margin: 0 1rem;
    }
    .aqua {
      background-color: aqua;
      box-shadow: 0 0 0.4rem rgba(174, 254, 253, 0.7);
    }
    .orange {
      background-color: #ff8462;
      box-shadow: 0 0 0.4rem rgba(250, 202, 188, 0.7);
    }
    .yellow {
      background-color: #f3b757;
      box-shadow: 0 0 0.4rem rgba(244, 221, 184, 0.7);
    }
    .skyblue {
      background-color: #8dcef4;
      box-shadow: 0 0 0.4rem rgba(200, 225, 240, 0.7);
    }
    .pink {
      background-color: #ffb7cf;
      box-shadow: 0 0 0.4rem rgba(254, 178, 204, 0.7);
    }
  }
  .bottomData {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>